package com.courage.crawler.boss.service.crawler;

import org.openqa.selenium.chrome.ChromeDriver;

public class ChromeDriverContext {

    private boolean regisonEnd = false;

    private boolean pageEnd = false;

    private ChromeDriver chromeDriver;

    public ChromeDriver getChromeDriver() {
        return chromeDriver;
    }

    public void setChromeDriver(ChromeDriver chromeDriver) {
        this.chromeDriver = chromeDriver;
    }

    public boolean isRegisonEnd() {
        return regisonEnd;
    }

    public void setRegisonEnd(boolean regisonEnd) {
        this.regisonEnd = regisonEnd;
    }

    public boolean isPageEnd() {
        return pageEnd;
    }

    public void setPageEnd(boolean pageEnd) {
        this.pageEnd = pageEnd;
    }

    public boolean willstop() {
        return pageEnd && regisonEnd;
    }

}
